package samsung.other;

import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

/**
 * Class realized methods for printing information to console.
 *
 * @author Vitaliy Muzalevskiy
 */
public class Printer {
    
    /**
     * Method prints results of simulation to console.
     *
     * @param results <code>Map</code> object with country name as a <code>kay</code>
     *      and value of iterations as a <code>value</code>.
     */
    public void printResults(Map<String, Integer> results){
        Set<Entry<String, Integer>> entrySet = results.entrySet();
        for(Entry entry: entrySet){
           System.out.println(entry.getKey() + " " + entry.getValue());
        }       
    }
}
